package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * @author eason
 * @ClassName: VSDC
 * @Description: 服务-义工中心定义表
 * @date 2016-11-03 18:30:29
 */
@Entity
@Table(name = "tb_xa_vsdc")
@ApiModel(value = "服务-义工中心定义表")
public class VSDC extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "义工活动名称,义工活动名称")
    private String vsdc_Name;
    @ApiModelProperty(value = "组织简介,组织简介（帮忙买菜、e孝道颐养院）")
    private String vsdc_Introduce;
    @ApiModelProperty(value = "组织照片链接,组织照片链接")
    private String vsdc_PicURL;
    @ApiModelProperty(value = "组织详细内容(富文本)(基本全文字),组织详细内容(富文本)")
    private String vsdc_Content;
    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;

    public static final long SORT_DEFAULT = 9999999L;

    public VSDC() {
    }

    @Column(nullable = true, length = 50)
    public String getVsdc_Name() {
        return vsdc_Name;
    }

    public void setVsdc_Name(String vsdc_Name) {
        this.vsdc_Name = vsdc_Name;
    }

    @Column(nullable = true, length = 255)
    public String getVsdc_Introduce() {
        return vsdc_Introduce;
    }

    public void setVsdc_Introduce(String vsdc_Introduce) {
        this.vsdc_Introduce = vsdc_Introduce;
    }

    @Column(nullable = true, length = 255)
    public String getVsdc_PicURL() {
        return vsdc_PicURL;
    }

    public void setVsdc_PicURL(String vsdc_PicURL) {
        this.vsdc_PicURL = vsdc_PicURL;
    }

    @Column(nullable = true, length = 10000, columnDefinition = "MEDIUMTEXT")
    public String getVsdc_Content() {
        return vsdc_Content;
    }

    public void setVsdc_Content(String vsdc_Content) {
        this.vsdc_Content = vsdc_Content;
    }

	public void setClickCont(Long clickCont){
		this.clickCont=clickCont;
	}
	
	@Column(nullable=true,length=50)
	public Long getClickCont(){
		return clickCont;
	}
	public void setSort(Long sort){
		this.sort=sort;
	}
	
	@Column(nullable=true,length=50)
	public Long getSort(){
		return sort;
	}
	
	@Override
    public void setInsertBefore() {
        super.setInsertBefore();
        if (sort == null) {
            sort = SORT_DEFAULT;//排序默认值
        }
    }

}
